package top.kaoshanji.p1ch05a;

import java.util.Random;

/**
 * 代码清单-p1ch05a-087页a：选取float数组中的每一个元素
 * author kaoshanji
 * ^_^
 * create time 2025/3/6 21:38
 */
public class ForInFloat {

    public static void main(String[] args) {
        Random rand = new Random(47);
        float[] f = new float[10];
        for (int i = 0; i < 10; i++) {
            f[i] = rand.nextFloat();
        }

        for (float x: f) {
            System.out.println(x);
        }

    }


}
